I want to check whether given Incident Id is valid or not.
For this purpose, I am using https://api-reference.pagerduty.com/#!/Incidents/get_incidents_id
Wrong Id : ABC
If I request for this id then I am getting http status code as 403 (Access Denied)
Wrong Id : PQR
If I request for this id then I am getting http status code as 404 (Incident Not Found)
Here, we can see that for 1st request it gives wrong http status code while for 2nd request it gives correct http status code.
As per my observation if Incident Id starts with P and then it don’t exists then it gives 404 but if Incident Id starts with any other character then it gives 403 , so my request is in every case if Incident id is not valid then can we get correct http status code ?
In get Service API call this works properly but not in Get Incident API Call.